package myJs.api

import myJs.Implicits._
import myJs.myPkg.MyFetch
import org.scalajs.macrotaskexecutor.MacrotaskExecutor.Implicits._
import shared.Pojo._
import shared.tsPojo.TsPojo
import upickle.default._

/**
 * Created by yz on 7/5/2022
 */
object Marker {

  val baseUrl = s"${Api.apiUrl}/gepLiver/marker"

  def allByServer(dataStr: String) = {
    val url = s"${baseUrl}/allByServer"
    MyFetch.postRnText(url = s"${url}", data = dataStr, headers = Map("Content-Type" -> "application/json")).map { str =>
      str.toObj
    }
  }

}
